package types

type AuthLoginReq struct {
	UserName      string `json:"userName" validate:"required,min=4,max=64"`
	Password      string `json:"password" validate:"required,min=4,max=20"`
	CaptchaId     string `json:"captchaId" validate:"required"`
	CaptchaAnswer string `json:"captchaAnswer" validate:"required"`
}

type AuthUserInfoResp struct {
	Id     int      `json:"id"`
	Name   string   `json:"name"`
	Email  string   `json:"email"`
	Avatar string   `json:"avatar"`
	Roles  []string `json:"roles"`
}
